USE [@DATABASE]

IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_ZimmetHKutuk_isDeleted]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ZimmetHKutuk] DROP CONSTRAINT [DF_ZimmetHKutuk_isDeleted]
END

USE [@DATABASE]

/****** Object:  Table [dbo].[ZimmetHKutuk]    Script Date: 02/11/2013 21:32:49 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ZimmetHKutuk]') AND type in (N'U'))
DROP TABLE [dbo].[ZimmetHKutuk]

USE [@DATABASE]

/****** Object:  Table [dbo].[ZimmetHKutuk]    Script Date: 02/11/2013 21:32:49 ******/
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[ZimmetHKutuk](
	[zID] [int] IDENTITY(1,1) NOT NULL,
	[pID] [int] NULL,
	[EvrakDate] [datetime] NULL,
	[EvrakCreateDate] [datetime] NULL,
	[EvrakCinsi] [int] NULL,
	[EvrakUpdateDate] [datetime] NULL,
	[isDeleted] [bit] NULL,
 CONSTRAINT [PK_chzZimmet] PRIMARY KEY CLUSTERED 
(
	[zID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

ALTER TABLE [dbo].[ZimmetHKutuk] ADD  CONSTRAINT [DF_ZimmetHKutuk_isDeleted]  DEFAULT ((0)) FOR [isDeleted]